﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity.Migrations;
using RepoMovies.Data.Models;

namespace RepoMovies.Data
{
    public static class Seeder
    {
        public static void Seed(MoviesDbContext db)
        {
            db.Movies.AddOrUpdate(
                m => new { m.MovieId, m.Title, m.IsRewatchable, m.Description },
                new Movie() {MovieId=345, Title="Mad Max", IsRewatchable=true, Description="Tina turner is the deirector" },
                new Movie() {MovieId=346, Title="Mad Bambi", IsRewatchable=false, Description="Extreme huinting" },
                new Movie() {MovieId=346, Title="Shrek", IsRewatchable=true, Description="Animation by pixar" }

                );
        }
    }
}
